<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- 双分支 -->
        <div v-if="age >= 18">去网吧偷耳机</div>
        <div v-else>去大街捡垃圾</div>

        <!-- 多分支 -->
        <h2>禹桂崇有多少钱</h2>

        <div v-if="money >= 10000">带着我一起去按摩</div>
        <div v-else-if="money >= 8000">带着我一起去洗脚</div>
        <div v-else-if="money >= 5000">带着我一起去吃饭</div>
        <div v-else>打禹桂崇。叫他回去拿钱</div>

      </div>
    <script src="./vue.js"></script>
    <script>
        new Vue({
            el: "#app",
            data() {
                return {
                   age: 16,
                   money: 12000
                }
            },
            methods:{
                   
            }
        })
    </script>
</body>
</html>